﻿@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    @Styles.Render("~/bundles/common")
    <link rel="stylesheet" href="@Url.Content("~/skin/admin")" />
    @Scripts.Render("~/bundles/framework")
    <script type="text/javascript">
        var appPath = '@Url.Content("~/")';
        var userId = '@User.Identity.Name';
        var admin = false;
        @if(Session["Admin"]!=null) {
            <text>admin = '@Session["Admin"].ToString()' == 'True';</text>
        }
    </script>
    @Styles.Render("~/bundles/jqueryui")
</head>
<body>
    <div class="page">
        <div id="header">
            @Html.Action("Title", "Admin")
        </div>
        <div id="middle">
            <div id="left">
                @Html.Action("Menu", "Admin")
            </div>
            <div id="center">
                @RenderBody()
            </div>
            <div style="clear: both;">&nbsp;</div>
        </div>
        <div class="clear"></div>
        <div id="footer">
            &copy; 2013 LiteBlog
        </div>
    </div>
    @Scripts.Render("~/bundles/utilities/admin")
    @Scripts.Render("~/bundles/knockout/admin")
    @RenderSection("ScriptSection", false)
</body>
</html>
